package com.momento.tibco.courselearn;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.webkit.WebView;

import com.umeng.analytics.MobclickAgent;

public class MainActivity extends AppCompatActivity {
private WebView webView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        webView = (WebView) findViewById(R.id.webview);
        if (BuildConfig.FLAVOR.equals("Baidu")){
            webView.loadUrl("http://www.baidu.com");
            Logger.log("hello baidu");
        }else {
            webView.loadUrl("http://www.google.com");
            Logger.log("hello google");
        }
    }
    public void onResume() {
        super.onResume();
        MobclickAgent.onResume(this);
    }
    public void onPause() {
        super.onPause();
        MobclickAgent.onPause(this);
    }
}
